<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>会员等级配置</title>
</head>
<body>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li class=""><a target="navTab" href="${pageContext.request.contextPath}/gradeConfig/toadd" class="add"><span>添加</span></a></li>
			<li class="line">line</li>
			<li class=""><a warn="请选择一条数据" target="navTab" href="${pageContext.request.contextPath}/gradeConfig/toUpdate?id={id}" class="edit"><span>修改</span></a></li>
			<li class="line">line</li>
			<li><a warn="请选择一条数据" title="确定要删除吗？" target="ajaxTodo" href="${pageContext.request.contextPath}/gradeConfig/del?id={id}" class="delete"><span>删除</span></a></li>
			<li class="line">line</li>
		</ul>
	</div>
	<table class="list" width="100%" layoutH="116">
		<thead>
			<tr>
				<th width="80">编码</th>
				<th width="80">名称</th>
				<th width="80">消费积分(每元积分)</th>
				<th width="80">优惠金额(每升优惠)</th>
				<th width="80">创建时间</th>
			</tr>
		</thead>
	<tbody>
		<volist id="vo" name="list">
			<c:forEach items="${list}" var="bean" varStatus="status">
				<tr target="id" rel="${bean.id}">
					<td>${bean.id}</td>
					<td>${bean.name}</td>
					<td>${bean.point}</td>
					<td>${bean.saleAmount}</td>
					<td>
						<fmt:formatDate value="${bean.createdTime}" type="date" dateStyle="long" />
					</td>
				</tr>
			</c:forEach>
			</volist>
		</tbody>
	</table>
</div>
</body>
<script type="text/javascript">

	function dialogAjaxDone(json){
	    DWZ.ajaxDone(json);
	    if (json.statusCode == DWZ.statusCode.ok){
	        if (json.navTabId){
	            navTab.reload(json.forwardUrl, {navTabId: json.navTabId});
	        } else if (json.rel) {
	            var $pagerForm = $("#pagerForm", navTab.getCurrentPanel());
	            var args = $pagerForm.size()>0 ? $pagerForm.serializeArray() : {}
	            navTabPageBreak(args, json.rel);
	        }
	        if ("closeCurrent" == json.callbackType) {
	            $.pdialog.closeCurrent();
	        }
	    }
	}
</script>
</html>